<!DOCTYPE html>
<html lang="">
<head>
    <meta charset="UTF-8">
    <link rel="icon" href="/favicon.ico">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>reposhub</title>
    <style>
        @keyframes rotate {
            from {
                /* 开始时不旋转 */
                transform: rotate(0deg);
            }
            to {
                /* 结束时旋转360度 */
                transform: rotate(360deg);
            }
        }

        body, html {
            width: 100%;
            height: 100%;
            padding: 0;
            margin: 0;
        }

        #loading {
            user-select: none;
            font-size: 3rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: white;
            width: 100%;
            height: 100%;
            background: #0d1117;
        }

        #app {
            display: none;
        }
    </style>
</head>
<body>
<div id="loading">
    <div style="margin-bottom: 10px">reposhub</div>
    <div style="animation: rotate 1s linear infinite;width: 25px;height: 25px;display: flex;justify-content: center;align-items: center">
        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
            <defs>
                <linearGradient id="mingcuteLoadingFill0" x1="50%" x2="50%" y1="5.271%" y2="91.793%">
                    <stop offset="0%" stop-color="white"/>
                    <stop offset="100%" stop-color="#020202" stop-opacity="0.55"/>
                </linearGradient>
                <linearGradient id="mingcuteLoadingFill1" x1="50%" x2="50%" y1="15.24%" y2="87.15%">
                    <stop offset="0%" stop-color="#020202" stop-opacity="0"/>
                    <stop offset="100%" stop-color="#020202" stop-opacity="0.55"/>
                </linearGradient>
            </defs>
            <g fill="none">
                <path d="m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z"/>
                <path fill="url(#mingcuteLoadingFill0)"
                      d="M8.749.021a1.5 1.5 0 0 1 .497 2.958A7.5 7.5 0 0 0 3 10.375a7.5 7.5 0 0 0 7.5 7.5v3c-5.799 0-10.5-4.7-10.5-10.5C0 5.23 3.726.865 8.749.021"
                      transform="translate(1.5 1.625)"/>
                <path fill="url(#mingcuteLoadingFill1)"
                      d="M15.392 2.673a1.5 1.5 0 0 1 2.119-.115A10.48 10.48 0 0 1 21 10.375c0 5.8-4.701 10.5-10.5 10.5v-3a7.5 7.5 0 0 0 5.007-13.084a1.5 1.5 0 0 1-.115-2.118"
                      transform="translate(1.5 1.625)"/>
            </g>
        </svg>
    </div>

</div>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
<script>
    // 获取要操作的div元素
    const app = document.getElementById('app');
    const loading = document.getElementById('loading');
    setTimeout(() => {
        app.style.display = 'block';
        loading.parentNode.removeChild(loading);  //从dom移除
    }, 1500);
</script>
</body>
</html>
